         <!-- START OF MAINCOL -->
          <div class="MainCol AM_BookPage">

              <h1 class="left">心理测试</h1>
              <div class="right"><a href="<?php echo CHtml::normalizeUrl(array('/admin/psytest/newtopic')); ?>" class="Blue_btn" title="add new ebook"><span><?= CHtml::image(Yii::app()->baseUrl.'/images/add_icon.gif', '', array('class' => 'icon')); ?> 添加新测试</span></a>
              </div>
              <br class="clear" />
              
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 心理测试管理
               </span><br /><br />
              
              <div class="Titlebox box"><!-- DON'T DELETE --></div>

              <?php if(Yii::app()->user->hasFlash('successMessage')) : ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> <?php echo Yii::app()->user->getFlash('successMessage'); ?></span>
              </div>
              <?php endif; ?>
              
              <div class="DisplayBox_top Smallbox">
              
              	  <b class="left SmallFont">显示 <span class="Blue"><?= $pages->startOffset; ?> - <?= $pages->endOffset; ?> , 共 <?= $pages->itemCount; ?></span> 条记录</b>
                  
                  <?php $this->widget('CListPager', array('pages' => $pages)); ?>
                  <?php // $this->widget('CLinkPager', array('pages' => $pages, 'maxButtonCount' => 8)); ?>
                  
                  <br class="clear" />
              </div>
              
              <ul class="Lists Smallbox">
              <?php foreach($topics as $k => $topic) { ?>
              	  <li <?php if($k%2 == 1) { ?>class="ThinGrey_bg"<?php } ?>>
                      <span class="ImgBox">
						<span class="Btm">
							<?php echo CHtml::link(CHtml::image($topic->getImageUrl('s'), htmlspecialchars($topic->topicTitle), array('style' => 'max-width: 88px')), array('/admin/psytest/edittopic', 'id' => $topic->topicId)); ?>
						</span>
					</span>
                      <span class="ContentBox">
                          <p class="Smallbox">
                      	  <?= CHtml::link($topic->topicTitle, array('admin/psytest/edittopic', 'id' => $topic->topicId), array('class' => 'BlueLink')); ?><br />
                      	    ID：<?php echo $topic->topicId; ?>
                          </p>
                          
                          <p class="Smallbox">
                          	<label><strong>题目总数</strong></label>: <?= $topic->questionCount; ?><br />
                          	<label><strong>类型</strong></label>: <?= $topic->getTopicTypeText(); ?><br />
                          	<label><strong>描述</strong></label>: <?= $topic->topicDescr; ?><br />
                          </p>
                      </span>
                      <br class="clear" />
                      
                      <span class="Rated"><?php echo CHtml::link('删除', array('/admin/psytest/deletetopic', 'id' => $topic->topicId), array('confirm' => '确定要删除这个心理测试吗？', 'class' => 'Delete')); ?></span>
                </li>
                <?php } ?>
                
              </ul>
              
              
              <div class="DisplayBox_btm">
              
              	  <b class="left SmallFont">显示 <span class="Blue"><?= $pages->startOffset; ?> - <?= $pages->endOffset; ?> , 共 <?= $pages->itemCount; ?></span> 条记录</b>
                  
                  <?php $this->widget('CListPager', array('pages' => $pages)); ?>
                  <?php // $this->widget('CLinkPager', array('pages' => $pages)); ?>
                  
                  <br class="clear" />       
              </div>
              
        </div>
          <!-- END OF MAINCOL -->
